package com.xgjweb.fsi.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.xgjweb.common.action.XgjWebAction;
import com.xgjweb.common.utils.XgjWebLogger;
import com.xgjweb.fsi.domain.Tech;
import com.xgjweb.fsi.service.ITechService;

/**
 * 
 * @author xgj
 * 
 */
public class TechAction extends XgjWebAction {
	ITechService techService;

	public void setTechService(ITechService techService) {
		this.techService = techService;
	}

	/**
	 * 添加
	 */ 
	public Boolean addTech(Tech tech) throws Exception {
		return techService.addTech(tech);
	}

	/**
	 * 查询
	 */ 
	public List<Tech> queryTech() throws Exception {
		return techService.queryTech();
	}

	/**
	 * 查找
	 * @param tech
	 * @return
	 * @throws Exception
	 */
	public Tech findTech(Tech tech) throws Exception {
		return techService.findTech(tech);
	}

	/**
	 * 删除
	 * @param tech
	 * @return
	 * @throws Exception
	 */
	public Boolean deleteTech(Tech tech) throws Exception {
		return techService.deleteTech(tech);
	}
	/**
	 * 更新
	 * @param tech
	 * @return
	 * @throws Exception
	 */
	public Boolean updateTech(Tech tech) throws Exception {
		return techService.updateTech(tech);
	}
}
